package com.banesco.precargadepositos.interfaz.componentes;

import net.rim.device.api.ui.Color;
import net.rim.device.api.ui.Graphics;
import net.rim.device.api.ui.Manager;
import net.rim.device.api.ui.XYEdges;
import net.rim.device.api.ui.component.Dialog;
import net.rim.device.api.ui.component.LabelField;
import net.rim.device.api.ui.decor.Border;
import net.rim.device.api.ui.decor.BorderFactory;

public class DialogoContratoBanesco extends Dialog
{
	private int _colorBordeClaro = 0X00ABDF;
	private int _colorLetra = 0X00466F;
	
	public DialogoContratoBanesco(String mensaje)
	{
		super(Dialog.D_YES_NO , mensaje, 0, null, Manager.USE_ALL_WIDTH );
		
		XYEdges edges = new XYEdges(2, 2, 2, 2);
		XYEdges colors = new XYEdges(_colorBordeClaro, _colorBordeClaro, _colorBordeClaro, _colorBordeClaro);
		Border bordeTextBox = BorderFactory.createSimpleBorder(edges, colors, Border.STYLE_SOLID);
		this.setBorder(bordeTextBox);
	}
	
	
	protected void paint(Graphics g) 
	{
	    g.setColor(Color.WHITE);
	    g.fillRect (0, 0, this.getWidth(), this.getHeight());
	    
	    g.setColor(_colorLetra);
	  super.paint(g);
	 }
}

